package info.androidhive.slidingmenu;



import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

public class HomeFragment extends Fragment {

	private Button viewMost;
	

	public HomeFragment() {
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		View rootView = inflater.inflate(R.layout.fragment_home, container,false);
		viewMost = (Button) rootView.findViewById(R.id.button1);
		//viewMost2 = (Button) rootView.findViewById(R.id.Button01);
		//viewMost = (Button) rootView.findViewById(R.id.Button02);
		
		viewMost.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				viewMost();
				
			}
		});
		return rootView;
	}
	
	
	public void viewMost(){
		Intent i = new Intent(getActivity(), HomeActivity.class);
        startActivity(i);
	}
}
	
	

